package com.top10.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 * 
 * </p>
 *
 * @author ellen
 * @since 2018-09-27
 */
@TableName("tb_coupon")
public class Coupon extends Model<Coupon> {

    private static final long serialVersionUID = 1L;

	private Integer couponNum;
	@TableId(value="id", type= IdType.AUTO)
	private Integer id;
	private String uuid;
    /**
     * 优惠券名称
     */
	private String couponName;
    /**
     * 金额
     */
	private BigDecimal amount;
    /**
     * 开始时间
     */
	private String startDate;
    /**
     * 结束时间
     */
	private String endDate;
    /**
     * 满多少才能使用优惠券
     */
	private BigDecimal requirementAmount;


	public Integer getCouponNum() {
		return couponNum;
	}

	public void setCouponNum(Integer couponNum) {
		this.couponNum = couponNum;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getUuid() {
		return uuid;
	}

	public void setUuid(String uuid) {
		this.uuid = uuid;
	}

	public String getCouponName() {
		return couponName;
	}

	public void setCouponName(String couponName) {
		this.couponName = couponName;
	}

	public BigDecimal getAmount() {
		return amount;
	}

	public void setAmount(BigDecimal amount) {
		this.amount = amount;
	}

	public String getStartDate() {
		return startDate;
	}

	public void setStartDate(String startDate) {
		this.startDate = startDate;
	}

	public String getEndDate() {
		return endDate;
	}

	public void setEndDate(String endDate) {
		this.endDate = endDate;
	}

	public BigDecimal getRequirementAmount() {
		return requirementAmount;
	}

	public void setRequirementAmount(BigDecimal requirementAmount) {
		this.requirementAmount = requirementAmount;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "Coupon{" +
			", couponNum=" + couponNum +
			", id=" + id +
			", uuid=" + uuid +
			", couponName=" + couponName +
			", amount=" + amount +
			", startDate=" + startDate +
			", endDate=" + endDate +
			", requirementAmount=" + requirementAmount +
			"}";
	}
}
